#include <QStringListModel>

#include "qtlistviewtest2.h"

QtListviewtest2::QtListviewtest2(QWidget *parent, Qt::WFlags flags)
	: QMainWindow(parent, flags)
{
	ui.setupUi(this);

	QStringListModel * slm = new QStringListModel(this);
    QStringList sl;
    sl.append("asdfsadfgggggggggggggggggggggggggggsa");
    sl.append("asdfsadfsa");
    sl.append("asdfsadfsa");
    slm->setStringList(sl);
	
    listView = new QListView(this);
	listView->setFixedSize(100, 100);
	listView->setModel(slm);
}

QtListviewtest2::~QtListviewtest2()
{

}
